package com.suxin.splitter.spliter;

import com.google.common.collect.Lists;

import java.util.List;

/**
 * @author Tang
 * @classname ListParamSplitter
 * @description [ List ]
 * @date 2022/11/8 14:10
 */
public class ListParamSplitter
        extends AbstractFixTypeParamSplitter<List> implements SmartParamSplitter<List>{
    @Override
    protected List<List> doSplite(List param, int maxSize) {
        return Lists.partition(param,maxSize);
    }
}
